import Link from 'next/link'

export default function Home() {
  return (
    <main>
      <h1>Home Page</h1>
      <ul>
        <li><Link href="/posts">Posts List</Link></li>
        <li><Link href="/products">Products List</Link></li>
        <li><Link href="/about">About</Link></li>
      </ul>
    </main>
  )
}
Home.getTitle = function () {
  return {
    title: 'title of home page'
  }
}
Home.renderxx = function () {
  return (
    <h1>Render from Home</h1>
  )
}

export function getStaticProps () {
  return ({
    props: {
      pageName: 'Home Page'
    }
  })
}